package org.eden.heartbeat.core.persistence.impl;

import org.eden.heartbeat.core.persistence.AbstractDAO;
import org.eden.heartbeat.core.persistence.SimplePersistenceManager;

import java.sql.SQLException;

/**
 * Abstract generic DAO implementation.
 *
 * @author trsimoes
 * @version $Revision:$
 */
public abstract class AbstractDAOImpl implements AbstractDAO {

    protected SimplePersistenceManager persistenceManager = SimplePersistenceManager.getInstance();

    public AbstractDAOImpl() {
        this.persistenceManager.registerDAO(this);
    }

    @Override
    public void shutdown() throws SQLException {
        // do nothing
    }
}